package com.example.e_comm.entity;

/**
 * @author 方金月
 * @version 0.1
 * @date 2025/10/14 11:01
 */
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

//学生管理

@Data
@TableName("users")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String email;
    private String password;
    private Integer status;

    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime = LocalDateTime.now();

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime = LocalDateTime.now();
}
